package hw04.grammar.productions;

import java.util.List;

public class DB {
	
	private String name;
	private List<Object> attrs;
	
	@SuppressWarnings("unused")
	private DB() {}
	
	protected DB(String name, List<Object> attrs) {
		setName(name);
		setAttrs(attrs);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Object> getAttrs() {
		return attrs;
	}

	public void setAttrs(List<Object> attrs) {
		this.attrs = attrs;
	}
	
	@Override
	public String toString() {
		return getClass().getSimpleName() + ":" + 
			getName() + "(" +
			getAttrs().toString() + ")";
	}

}
